/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package control;

import model.MusicGenre;

/**
 *
 * @author Eleftherios
 */
public class GenreObj {
    private Integer musicGenreId;   
    private String name;
    
    public GenreObj(Integer musicgenreid, String name) {
        this.musicGenreId = musicgenreid;
        this.name = name;
    }
   
   public GenreObj(){
       
   }
   public Integer getMusicGenreId() {
        return musicGenreId;
    }

    public void setMusicGenreId(Integer musicGenreId) {
        this.musicGenreId = musicGenreId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
     public void ReadGenre() {
        MusicGenre MyClass = new MusicGenre();
        MyClass.setMusicGenreId(musicGenreId);
        MyClass.read(Boolean.FALSE);
                 
        musicGenreId=MyClass.getMusicGenreId();
        name=MyClass.getName();            
    }
    
    
}
